Table of Contents

Creating Scripts
Introduction
	System Requirements
	Getting Started
	TurboCAD v4 Script Basics
		Calling Functions in TCADAPI
		Error Checking
		Scripting Requires a Drawing to be Active
		Graphics Usually Get Added to the Drawing
		TCADAPI Get and Set Properties Functions
	Writing TurboCAD v4 Scripts
		Basic Subroutine and Function Calls
	Running TurboCAD v4 Scripts
Overview of TurboCAD Application Interface
	Application Functions
		Accessing Your Open Drawings
	Drawing Functions
	File Input and Output Functions
	Graphic Functions
	Layer Functions
	Screen Functions
	Vertex Functions
	View Functions
Programming Examples
	Calculator Example
	Exporting Vertex Data Example
	Importing Vertex Data Example
	Reading An Excel Spreadsheet
	Copying Text Along An Arc		
	Linear Graphic Copy Example
Troubleshooting and Debugging Scripts	
	Adding Scripts to the Script Toolbar and Menu
	TurboCAD v4 Enable Basic Debugger
	Known Issues and Problems with Enable Basic
TurboCAD Application Interface
	APPLICATION - Miscellaneous Functions
	APPLICATION - Error Functions
	APPLICATION - Get and Set Property Functions
	APPLICATION - Drawing Management Functions
	APPLICATION - Undo and Redo Functions
	DRAWING - Selection Functions
	DRAWING - Construction Line Creation Functions
	DRAWING - Point Creation Functions
	DRAWING - Line Creation Functions
	DRAWING - Multi-line Creation Functions
	DRAWING - Double Line Creation Functions
	DRAWING - Circle and Ellipse Creation Functions
	DRAWING - Arc Creation Functions
	DRAWING - Text Creation Function
	DRAWING - Dimension Creation Functions
	DRAWING - Undo Record Functions
	DRAWING - Block Functions
	DRAWING - Get and Set Property Functions
	GRAPHICS - Graphic Functions
	GRAPHICS - Selection Manipulation Functions
	GRAPHICS - Get and Set Property Functions
	GRAPHICS - Vertex Functions
	VIEW - Functions
	LAYERS - Management Functions
	LAYERS - Get and Set Property Functions
	FILE I/O - Functions
	SCREEN - Mouse to Point Functions
Enable Basic Language Reference